package com.example.wowangz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * spring boot 入口
 * 
 * @author wowangz
 *
 */
@RestController // 注解为RestController 
// @EnableWebMvc    // 启用spring mvc 功能相当与HandlerMapping HandlerAdapter ExceptionResolver
@SpringBootApplication // Spring Boot的标识  相当于使用 @Configuration @EnableAutoConfiguration @ComponentScan3个注解的默认配置
@MapperScan(basePackages = "com.example.wowangz.modules.*.mapper") // 扫描mybatis的配置文件
//@ImportResource({"classpath:dubbo/dubbo-provider.xml"})
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

	@RequestMapping("/")
	String home() {
		return "Hello World!";
	}
}
